<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'spedt.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<SCRIPT src="js/color.js" type="text/javascript"></SCRIPT>
	</head>
	<style>
#input1 {
	border: 1px solid #0000FF
}

#btn1 {
	width: 70px;
	height: 21px;
	font-size: 12px;
	padding-top: 3px;
	border-left: 1px solid #FFFFFF;
	border-top: 1px solid #FFFFFF;
	border-right: 1px solid #666666;
	border-bottom: 1px solid #666666
}
</style>
<script src="js/jquery.js" type="text/javascript"></script>
<SCRIPT>
function checkinfo(){
if($("#dianhua").val().length < 11){
$("#dhhaoma").text("请输入正确的联系电话!");
return false;
}else{
$("#dhhaoma").text("");
}
if($("#yydizhi").val() == ""){
$("#dizhi").text("医院地址不能为空！");
return false;
}else{
$("#dizhi").text("");
}
if($("#ccluxian").val() == ""){
$("#luxian").text("乘车路线不能为空！");
return false;
}else{
$("#luxian").text("");
}
return true;
}
</SCRIPT>

	<body>
	<c:if test="${message != null}">
								<table width="100%">
									<tr style="background-color: #87CEFF">
										<td align="center" valign="center" height="30">
											<div>${message}</div>
										</td>
									</tr>
								</table>
							</c:if>
		<center>
			<form method="post" action="connect.do?method=updateConnect"
				enctype="multipart/form-data">
				<TABLE border=0 cellSpacing=1 cellPadding=0 width=800
					bgColor=#9bc8eb>
					<TBODY>

						<TR>
							<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center
								width=100 align=right>
								联系电话：
							</TD>
							<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center
								width=341 colSpan=2 align=left>
								<INPUT id="dianhua" class=jyts_bk2 size=15 type=text name=phone
									value="${connectInfo.phone}" />
									<div id="dhhaoma" style="color: red; display: inline" />
							</TD>
						</TR>

						<TR>
							<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center
								width=100 align=right>
								医院地址：
							</TD>
							<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center
								width=341 colSpan=2 align=left>
								<INPUT id="yydizhi" class=jyts_bk2 size=20 type=text name=address
									value="${connectInfo.address}">
									<div id="dizhi" style="color: red; display: inline" />
							</TD>
						</TR>
						<TR>
							<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center
								width=100 align=right>
								乘车路线：

							</TD>
							<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center
								width=341 colSpan=2 align=left>
								<INPUT id="ccluxian" class=jyts_bk2 size=25 type=text name=busLine
									value="${connectInfo.busLine}" />
									<div id="luxian" style="color: red; display: inline" />
							</TD>
						</TR>
						<TR>
							<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center
								width=100 align=right>
								附近地图：

							</TD>
							<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center
								width=341 colSpan=2 align=left>								
								<INPUT	TYPE="file" class="boxBorder" NAME="pirture" size=20 id="d" />								
							</TD>
						</TR>

						<TR>
							<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center
								width=100 align=center colspan="2">
								<input type="submit" value="保存" onclick="return checkinfo()">
							</TD>
						</TR>
					</TBODY>
				</TABLE>
			</form>
		</center>
	</body>
</html>
